package com.lambert.young.im.handler;


import com.lambert.young.im.IMServer;
import com.lambert.young.im.command.Result;
import com.lambert.young.im.command.ResultType;
import io.netty.channel.ChannelHandlerContext;

public class JoinGroupHandler {
    public static void execute(ChannelHandlerContext ctx){
        IMServer.GROUP.add(ctx.channel());
        ctx.channel().writeAndFlush(Result.success(ResultType.JOIN_GROUP_SUCCESS));
    }
}
